﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class AcademicOrganization
    {
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual int AcademicOrganizationID { get; set; }
        
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String Name { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual int AcademicOrganizationTypeID { get; set; }
        
        public virtual AcademicOrganizationType AcademicOrganizationType { get; set; }
        public virtual ICollection<AcademicPerson> AcademicPeople { get; set; }
        public virtual ICollection<KnowledgeArea> KnowledgeAreas { get; set; }
        public virtual ICollection<EducationalITApplication> EducationalITApplications { get; set; }
        public virtual ICollection<Course> Courses { get; set; }
    }

}
